package com.cnxjs.shs4et.repository;

import com.cnxjs.shs4et.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {

    // 按学号查询用户
    User findByaccount(String account);
    // 按Id查询用户
    User findById(Integer id);
}
